home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1987-05-08 | 848 b | 20 lines |
- 10 CLS
- 20 KEY OFF
- 30 COLOR 7,0
- 40 WIDTH 80
- 50 DEF SEG = 0: POKE 1050,PEEK(1052)
- 60 LOCATE 1,20:PRINT "Q U A D R A T I C F O R M U L A T U T O R I A L"
- 70 LOCATE 5,2:PRINT " This will guide you through the QUADRATIC FORMULA section of M A T H P A K."
- 80 LOCATE 6,2:PRINT " This section of M A T H P A K, will calculate two roots by using the "
- 90 LOCATE 7,2:PRINT "QUADRATIC FORMULA."
- 100 LOCATE 8,2:PRINT " EXAMPLE:"
- 110 LOCATE 10,2:PRINT " 2x^2 - 4x + 6 = 0, has A = 2, B = -4, and C = 6."
- 120 LOCATE 11,2:PRINT " Enter 2 for 'A' and press <RETURN>, then enter -4 for 'B' and press <RETURN>,"
- 130 LOCATE 12,2:PRINT "then enter 6 for 'C' and press <RETURN>."
- 140 LOCATE 13,2:PRINT " If a negative square root occurs, this will be indicated."
- 150 LOCATE 14,2:PRINT " The value of 0 for 'A', will exit back to main menu."
- 160 LOCATE 20,2:PRINT "Press the S P A C E B A R to return to disk tutorial..."
- 170 S$ =INKEY$:IF S$ = CHR$(32) THEN CLS:CLEAR:CHAIN"a"
- 180 GOTO 170
- 190 END
-